/* Scripted Forms -- Making GUIs easy for everyone on your team.
Copyright (C) 2017 Simon Biggs

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
by the Free Software Foundation, either version 3 of the License, or
(at your option) any later version (the "AGPL-3.0+").

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License and the additional terms for more
details.

You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.

ADDITIONAL TERMS are also included as allowed by Section 7 of the GNU
Affrero General Public License. These aditional terms are Sections 1, 5,
6, 7, 8, and 9 from the Apache License, Version 2.0 (the "Apache-2.0")
where all references to the definition "License" are instead defined to
mean the AGPL-3.0+.

You should have received a copy of the Apache-2.0 along with this
program. If not, see <http://www.apache.org/licenses/LICENSE-2.0>. */

.scripted-form-widget .form-container {
  font-family: Roboto, "Helvetica Neue", sans-serif;
}

.scripted-form-widget .no-ripple-height .mat-ripple {
  height: 0px;
}

.scripted-form-widget .jp-OutputArea-prompt {
  display: none;
}

.scripted-form-widget .float-right {
  float: right;
}

.scripted-form-widget img {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.hidden-iframe {
  width: 0;
  height: 0;
  border: 0;
  border: none;
  position: absolute;
  visibility: 0;
}

@media print {
  body, article {
    width: 100% !important;
    position: static !important;
    margin: 0 !important;
    padding: 0;
    max-width: 21cm !important;
    -webkit-print-color-adjust: exact;
    color-adjust: exact;
  }

  div, span {
    margin: 0 0 !important;
    max-width: 21cm !important;
  }

  /* .form-contents {
    width: 20cm !important;
    padding: 0 5mm !important;
  } */

  .scripted-form-widget {
    width: 20cm !important;
    /* padding: 0 5mm !important; */
  }

  .form-container {
    width: 20cm !important;
    height: 100% !important;
  }

  .margin {
    margin: 0 0 !important;
  }

  .hide-on-print {
    display: none !important;
  }

  .custom-toolbar {
    display: none !important;
  }

  .floating-spinner {
    display: none !important;
  }

  .p-Widget {
    position: static !important;
  }

  ul, img, .avoid-page-break {
    page-break-inside: avoid;
  }

  img {
    max-width: 450px !important;
  }

  @page {
    margin: 2cm;
  }
}


@media only screen {
  .fullscreen-body {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: white;
  }

  .scripted-form-widget .margin {
    margin: 20px;
  }

  .scripted-form-widget .form-contents {
    max-width: 940px;
    margin: 0 auto;
  }

  .scripted-form-widget {
    flex: 1 1 auto;
    margin: 0;
    padding: 0;
  }

  .scripted-form-widget .form-container {
    overflow: auto;
  }

  .scripted-form-widget .output-container div .jp-RenderedText {
    padding-left: 0;
  }

  .scripted-form-widget .output-container div div .jp-OutputPrompt {
    padding: 0;
    flex: 0;
    border: 0;
  }

  .scripted-form-widget .floating-spinner {
    position: fixed;
    bottom: 20px;
    right: 40px;
  }

  .scripted-form-widget .footer-space {
    height: 300px;
  }

  .scripted-form-widget .custom-toolbar {
    min-height: 45px !important;
  }
}